package com.lovegu.jvm;

import jdk.nashorn.internal.ir.debug.ObjectSizeCalculator;

/**
 * @author 老顾
 * @title: Test
 * @projectName java-restudy
 * @email: 1437594522@qq.com
 * @date 2022/9/22 11:58
 */
public class Test {
    private byte[] bytes;
    private int age;
    public Test(byte[] bytes, int age) {
        this.bytes = bytes;
        this.age = age;
    }
    public byte[] getBytes() {
        return bytes;
    }
    public void setBytes(byte[] bytes) {
        this.bytes = bytes;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }
    public static void main(String[] args) {
        Test test = new Test(new byte[12],12);

        System.out.println(ObjectSizeCalculator.getObjectSize(test));
    }
}
